package thinkingJava.chapter15;

class ComunicateSimply {
	static void perform(Performs p) {
		p.speak();
		p.sit();
	}
}
public class SimpleDogsAndRobots {
	public static void main(String[] args) {
		PerformingDog d = new PerformingDog();
		Robot r = new Robot();
		ComunicateSimply.perform(d);
		ComunicateSimply.perform(r);
	}
}
